<template>
  <div class="header">
    <div class="nav-topbar">
      <div class="container">
        <div class="top-menu">
          <a href="javascript:;">小米商城</a>
          <a href="javascript:;">MUI</a>
          <a href="javascript:;">云服务</a>
          <a href="javascript:;">协议规则</a>
        </div>
        <div class="top-user">
          <a href="javascript:;">登陆</a>
          <a href="javascript:;">注册</a>
          <a href="javascript:;" class="my-cart"
            ><span class="icon-cart"></span>购物车</a
          >
        </div>
      </div>
    </div>
    <div class="nav-header"></div>
  </div>
</template>

<script>
export default {
  name: "nav-header",
};
</script>

<style lang="scss">
.header {
  .nav-topbar {
    height: 2.4375rem;
    line-height: 2.4375rem;
    background: #333333;
    color: #b0b0b0;
    .container {
      width: 76.625rem;
      margin-right: auto;
      margin-left: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .top-menu {
        a {
          display: inline-block;
          color: #b0b0b0;
          margin-right: 1.0625rem;
        }
      }

      .top-user {
        a {
          display: inline-block;
          color: #b0b0b0;
          margin-right: 1.0625rem;
        }
        .my-cart {
          width: 6.875rem;
          background: #FF6600;
          text-align: center;
          color: #fff;
          .icon-cart {
            display: inline-block;
            width: 1rem;
            height: .75rem;
            background:url('/imgs/icon-cart-checked.png') no-repeat center;
            background-size: contain;
            margin-right: .25rem;
          }
        }
      }
    }
  }

  .nav-header {
  }
}
</style>
